import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_light_dark_demo/Utils/theme.dart';
import 'package:flutter_light_dark_demo/page/SplashPage.dart';

void main() {
  runApp(MyApp());
  // 隐藏底部按钮栏
//   SystemChrome.setEnabledSystemUIOverlays ([SystemUiOverlay.top]);
//
// // 隐藏状态栏
//   SystemChrome.setEnabledSystemUIOverlays ([SystemUiOverlay.bottom]);
//   // 隐藏状态栏和底部虚拟键栏
//   SystemChrome.setEnabledSystemUIOverlays([]);
  SystemUiOverlayStyle style = SystemUiOverlayStyle(
    statusBarColor: Colors.transparent,
  );
  SystemChrome.setSystemUIOverlayStyle(style);
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme:lightTheme(context),
      darkTheme: darkTheme(context),
      home: SplashPage(),
    );
  }
}

